package com.twu;

public class PizzaStoreFactory {

    public static PizzaFactory getStore(String countryName) {
        if (countryName.equals("NY"))
            return new NYPizzaFactory();
        else if (countryName.equals("Chicago"))
            return new ChicagoPizzaFactory();
        else if (countryName.equals("Pune"))
            return new PunePizzaFactory();
        return null;
    }
}
